angular.module('Root', ['ngRoute'])
    .config(function($routeProvider, $locationProvider) {
        $routeProvider.when('/', {
            templateUrl: Url.getViewUrl('paths/layout/base'),
            controller: 'BaseController'
        });

        /**
        * Registration routes
        * */
        $routeProvider.when('/registration/:stepNumber', {
            templateUrl: Url.getViewUrl('paths/layout/registration'),
            controller: 'RegistrationController'
        })
        .when('/registration/', {
            templateUrl: Url.getViewUrl('paths/layout/registration'),
            controller: 'RegistrationController'
        });
        $locationProvider.html5Mode(true);
    });